package com.xiaoma.tpo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaoma.tpo.dao.ReciteWordDao;
import com.xiaoma.tpo.domain.ReciteWord;

@Service
public class ReciteWordService {

    @Autowired
    private ReciteWordDao reciteWordDao;
    
    public List<ReciteWord> getWordsByGroupId(int groupId) {
        ReciteWord entity = new ReciteWord();
        entity.setReciteWordGroupId(groupId);
        return reciteWordDao.findByColumns(entity);
    }
}
